from appium.webdriver.common.appiumby import AppiumBy

from page.base_page import BasePage


class MemberEditPage(BasePage):
    def __init__(self, driver):
        super().__init__(driver)

    def delete(self):
        self.swipe_up()
        self.find(AppiumBy.CSS_SELECTOR, '[text="删除成员"]').click()
        self.find(AppiumBy.CSS_SELECTOR, '[text="确定]').click()